/*    */ package eos.moe.dragoncore;
/*    */ 
/*    */ import java.io.InputStream;
/*    */ import java.io.InputStreamReader;
/*    */ import java.nio.charset.StandardCharsets;
/*    */ import java.util.ArrayList;
/*    */ import java.util.LinkedHashMap;
/*    */ import java.util.List;
/*    */ import java.util.Map;
/*    */ import net.minecraft.client.Minecraft;
/*    */ import net.minecraft.client.resources.IResource;
/*    */ import net.minecraft.util.ResourceLocation;
/*    */ import org.yaml.snakeyamla.configuration.ConfigurationSection;
/*    */ import org.yaml.snakeyamla.configuration.file.YamlConfiguration;
/*    */ 
/*    */ 
/*    */ 
/*    */ public class fq
/*    */ {
/*    */   public static nz v(ResourceLocation a) throws cl {
/* 21 */     try (IResource a = Minecraft.func_71410_x().func_110442_L().func_110536_a(a)) {
/* 22 */       InputStream inputStream = iResource.func_110527_b();
/* 23 */       return v(inputStream);
/* 24 */     } catch (Throwable throwable) {
/* 25 */       if (throwable instanceof java.io.FileNotFoundException) {
/* 26 */         throw new cl("未找到文件", throwable);
/*    */       }
/* 28 */       throw new cl(throwable);
/*    */     } 
/*    */   }
/*    */ 
/*    */   
/*    */   public static nz v(InputStream a) {
/* 34 */     InputStreamReader inputStreamReader = new InputStreamReader(a, StandardCharsets.UTF_8);
/*    */     
/* 36 */     YamlConfiguration yamlConfiguration = YamlConfiguration.loadConfiguration(inputStreamReader);
/*    */ 
/*    */     
/* 39 */     List<dy> list = new ArrayList();
/*    */     
/* 41 */     ConfigurationSection configurationSection1 = yamlConfiguration.getConfigurationSection("Layer");
/* 42 */     if (configurationSection1 != null) {
/* 43 */       for (String str : configurationSection1.getKeys(false)) {
/* 44 */         ConfigurationSection configurationSection = configurationSection1.getConfigurationSection(str);
/* 45 */         if (configurationSection != null) {
/* 46 */           list.add(new dy(configurationSection));
/*    */         }
/*    */       } 
/*    */     }
/*    */     
/* 51 */     Map<Object, Object> map = new LinkedHashMap<>();
/*    */     
/* 53 */     ConfigurationSection configurationSection2 = yamlConfiguration.getConfigurationSection("Trigger");
/* 54 */     if (configurationSection2 != null) {
/* 55 */       for (String str1 : configurationSection2.getKeys(false)) {
/* 56 */         String str2 = configurationSection2.getString(str1);
/* 57 */         if (str2 != null) {
/* 58 */           map.put(str1, str2);
/*    */         }
/*    */       } 
/*    */     }
/*    */     
/* 63 */     ConfigurationSection configurationSection3 = yamlConfiguration.getConfigurationSection("HeldItemTransform");
/* 64 */     vu vu = new vu(configurationSection3);
/* 65 */     return new nz(list, (Map)map, vu);
/*    */   }
/*    */ }


/* Location:              D:\fanbian\[D][龙之核心]DragonCore-2.6.0.3.jar!\eos\moe\dragoncore\fq.class
 * Java compiler version: 8 (52.0)
 * JD-Core Version:       1.1.3
 */